<?php   $this->load->view('includes/header'); ?>
<div class="container">
    <div class="row">
								<div class="col-md-9">
												<h1>Panel de Control <small>Listado de Administradores</small></h1>
												<hr>
												<?php	if	(isset($error)	&&	$error):	?>
																<div class="alert alert-info alert-dismissable">
																				<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
																				<?php
																				if	(isset($msg)	&&	$msg	!=	' ')	{
																								echo	$msg;
																				}
																				?>
																</div>

												<?php	endif	?>
												<table class="table table-bordered table-hover tablesorter">
                <thead>
                  <tr>
                    <th>Email <i class="fa fa-sort"></i></th>
                    <th>Nombre <i class="fa fa-sort"></i></th>
                    <th>Operaciones</th>
                  </tr>
                </thead>
                <tbody>
                  <?php foreach($administradores as $admin):?>
                    <tr>
                      <td><?php echo $admin['email']; ?></td>
                      <td><?php echo $admin['nombre']; ?></td>
                      <td>
                        <a href="/admin/insert/<?php echo $admin['id_admin']; ?>/" title="Editar administradores"><i class="fa fa-pencil"></i></a>
                        <a href="/admin/eliminar/<?php echo $admin['id_admin']; ?>/" title="Eliminar administradores"><i class="fa fa-trash-o"></i></a>
                      </td>
                    </tr>
                  <?php endforeach; ?>
                </tbody>
              </table>
								</div>
    </div>
</div>
<?php   $this->load->view('includes/footer'); ?>